package com.wmh.baseservice.merchant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2022-01-07
 */
@ApiModel(value="MerchantBankCard对象", description="商家银行卡表")
public class MerchantBankCard implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "状态:	0")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty(value = "持有人名称")
    private String cardName;

    @ApiModelProperty(value = "卡号")
    private String cardNum;

    @ApiModelProperty(value = "开户行")
    private String bankName;

    @ApiModelProperty(value = "商家id")
    private Long merchantId;

    public Long getId() {
        return id;
    }

    public MerchantBankCard setId(Long id) {
        this.id = id;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public MerchantBankCard setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public String getRemark() {
        return remark;
    }

    public MerchantBankCard setRemark(String remark) {
        this.remark = remark;
        return this;
    }
    public Integer getVersion() {
        return version;
    }

    public MerchantBankCard setVersion(Integer version) {
        this.version = version;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public MerchantBankCard setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public MerchantBankCard setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public String getCardName() {
        return cardName;
    }

    public MerchantBankCard setCardName(String cardName) {
        this.cardName = cardName;
        return this;
    }
    public String getCardNum() {
        return cardNum;
    }

    public MerchantBankCard setCardNum(String cardNum) {
        this.cardNum = cardNum;
        return this;
    }
    public String getBankName() {
        return bankName;
    }

    public MerchantBankCard setBankName(String bankName) {
        this.bankName = bankName;
        return this;
    }
    public Long getMerchantId() {
        return merchantId;
    }

    public MerchantBankCard setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
        return this;
    }

    public static final String ID = "id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String VERSION = "version";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String CARD_NAME = "card_name";

    public static final String CARD_NUM = "card_num";

    public static final String BANK_NAME = "bank_name";

    public static final String MERCHANT_ID = "merchant_id";

    @Override
    public String toString() {
        return "MerchantBankCard{" +
            "id=" + id +
            ", status=" + status +
            ", remark=" + remark +
            ", version=" + version +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", cardName=" + cardName +
            ", cardNum=" + cardNum +
            ", bankName=" + bankName +
            ", merchantId=" + merchantId +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            MerchantBankCard.ID
            ,MerchantBankCard.STATUS
            ,MerchantBankCard.REMARK
            ,MerchantBankCard.VERSION
            ,MerchantBankCard.CREATE_TIME
            ,MerchantBankCard.UPDATE_TIME
            ,MerchantBankCard.CARD_NAME
            ,MerchantBankCard.CARD_NUM
            ,MerchantBankCard.BANK_NAME
            ,MerchantBankCard.MERCHANT_ID
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}